package com.delivery.www.servlet;

import com.delivery.www.po.Seller;
import com.delivery.www.service.ServiceImpl.SellerServiceImpl;

import java.util.Scanner;

public class SellerLoginPage {
    public static Seller sellerLogin(){
        Scanner scanner = new Scanner(System.in);
        System.out.println("用户名：");
        String name = scanner.next();
        System.out.println("密码：");
        String password = scanner.next();
        SellerServiceImpl sellerService = new SellerServiceImpl();
        return sellerService.login(name, password);
    }
}
